package com.ruoyi.crm.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 付款计划详情对象 crm_order_pay_details
 *
 * @author ruoyi
 * @date 2024-11-27
 */
@Data
@TableName("crm_order_pay_details")
@AllArgsConstructor
@NoArgsConstructor
public class CrmOrderPayDetails implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 付款详情id */
    @TableId(type = IdType.ASSIGN_ID)
    private String payDetailsId;

    /** 收付款id */
    @Excel(name = "收付款id")
    private String collectPayMoneyId;

    /** 预计付款时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预计付款时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payDetailsTime;

    /** 预计付款金额 */
    @Excel(name = "预计付款金额")
    private BigDecimal payDetailsAmount;
    /** 付款详情名称 */
    @Excel(name = "付款详情名称")
    private String payDetailsName;

    /** 预计付款金额 */
    @Excel(name = "预计付款金额")
    @TableField(exist = false)
    private BigDecimal detailsAmount;
    /** 付款详情名称 */
    @Excel(name = "付款详情名称")
    @TableField(exist = false)
    private String detailsName;

    /** 付款状态 */
    @Excel(name = "付款状态")
    private String payDetailsStatus;

    /** 归属人 */
    @Excel(name = "归属人")
    private String userId;

    private String remark;

    /**
     * 款项状态
     */
    private String detailsType;

    public CrmOrderPayDetails(BigDecimal payDetailsAmount, String payDetailsName, String detailsType) {
        this.payDetailsAmount = payDetailsAmount;
        this.payDetailsName = payDetailsName;
        this.detailsType = detailsType;
    }
}
